<%--
  Created by IntelliJ IDEA.
  User: cjt
  Date: 2020/12/10
  Time: 18:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>编辑</title>
    <link rel="stylesheet" href="/css/main.css">
    <link rel="stylesheet" href="/css/font-awesome/css/font-awesome.css">
</head>
<body>
<div class="box">
    <h3>编辑角色信息</h3>
    <form action="/role/edit" method="post">
        <table class="form-table">
            <tr>
                <td>序号</td>
                <td colspan="3" class="control">
                    <input type="text" name="ro_id" placeholder="填写地区" value="${role.ro_id}" readonly>
                    <span style="color: red;">*不可修改</span>
                </td>
            </tr>
            <tr>
                <td>角色名称</td>
                <td colspan="3" class="control">
                    <input type="text" name="ro_name" placeholder="角色名称" value="${role.ro_name}" readonly>
                    <span style="color: red;">*不可修改</span>
                </td>
            </tr>
            <tr>
                <td>角色描述</td>
                <td colspan="3" class="control">
                    <input type="text" name="ro_desc" placeholder="角色描述" value="${role.ro_desc}">
                </td>
            </tr>
            <tr>
                <td>创建时间</td>
                <td colspan="3" class="control">
                    <input type="date" name="ro_create_time" value="<fmt:formatDate value="${role.ro_create_time}" pattern="yyyy-MM-dd" />">
                </td>
            </tr>
            <tr>
                <td class="label">状态</td>
                <td colspan="3" class="detail">
                    <select name="state">
                        <option value="0" ${role.state=="0"?"selected":""}>启用中</option>
                        <option value="1" ${role.state=="1"?"selected":""}>禁用中</option>
                    </select>

                </td>
            </tr>
        </table>
        <div class="buttons">
            <input class="btn btn-primary va-bottom" type="submit" value="保存">&nbsp;&nbsp;
            <a class="btn btn-default" href="javascript:history.go(-1)">返回</a>
        </div>
    </form>
</div>

</body>
</html>
